//
//  AFNetworkToll.h
//  Test
//
//  Created by 张琦 on 15/11/6.
//  Copyright © 2015年 张琦. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, ZHResponseStyle) {
    ZHResponseStyleJSON,
    ZHResponseStyleXML,
    ZHResponseStyleData,
};
@interface AFNetworkToll : NSObject
+ (void)getUrl:(NSString *)url
          body:(id)body
      response:(ZHResponseStyle)style
requestheadFile:(NSDictionary *)headFile
       success:(void (^)(NSURLSessionDataTask *task, id result))success
       failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;
@end
